/**
	* 订单相关接口
*/
import { request } from "@/request";
import { objToQueryString } from '@/utils/format.js'

// 查询产品列表
export const GetProductList = data => {
	return request({url: '/api/productorder/selectAllProductInfoByProductCode'})
}

// 微信下单
export const GetWxPayOrder = data => {
	return request({url: `/api/wepay/createorder?${objToQueryString(data)}`, method: 'post'})
}

// 支付宝下单
export const GetZFBPayOrder = data => {
	return request({url: `/api/alipay/createorder?${objToQueryString(data)}`, method: 'post'})
}

// 个人风险报告
export const GetPersonalRepot = data => {
	return request({url: `/api/persondate/queryPersonalRiskReport?ordernumber=${data.ordernumber}`, data})
}